﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DbGenerator.Model.units.column
{
    public class TMaxLength
    {
        #region ctors
        public TMaxLength(int maximum)
        {
            _Maximum = maximum;
        }
        #endregion

        #region properties
        private int _Maximum;
        public int Maximum
        {
            get { return _Maximum; }
            set { _Maximum = value; }
        }
        #endregion

        #region overriden methods
        public override string ToString()
        {
            return String.Format(((_Maximum == 0) ? "" : "({0})"), _Maximum);
        }
        #endregion
    }
}
